package com.ztools.wx.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ztools.common.model.pc.card.CardMaster;
import com.ztools.common.model.pc.card.CardRechargeRecord;
import com.ztools.common.util.common.PageUtil;

import java.util.List;

/**
 * @Author: seeTools
 * @Date: 2023/6/26  18:16
 * @Version 1.0
 */
public interface WxCardService {

    /**
     * 获取储值卡列表
     *
     * @param memberId memberId
     * @return CardMaster
     */
    List<CardMaster> getCardList(Long memberId);

    /**
     * 获取卡信息
     *
     * @param cardNo cardNo
     * @return CardMaster
     */
    CardMaster getCardInfoByNo(String cardNo);

    /**
     * 获取卡充值记录
     *
     * @param pageUtil pageUtil
     * @return CardRechargeRecord
     */
    Page<CardRechargeRecord> getCardRechargeRecord(PageUtil<CardRechargeRecord> pageUtil);

    /**
     * 开卡
     *
     * @param memberId memberId
     */
    void openCard(Long memberId);

}
